﻿@model RH.Web.ViewModels.UtilityModels.ListConfig
@using RH.Web.Utility;
@using RH.Web.ViewModels.UtilityModels;
@{
    String pageTitle = "Store List";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    
    RH.Web.ViewModels.UtilityModels.ListConfig _ListConfig = ListConfigBuilder.Build(
                @"Basic Information{ CreatedOn | ModifiedOn | IsActive }, 
                Contact Information{Address | InCharge | Phone },
                Details Information{WeeklyCloseDay | StoreDetails}",
                Model.DataSource, true, "/Private/Store/Edit/{0}");
}
@*<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
*@
@*@Html.Partial("_DataTableList", Model)*@

<div class="page-heading">
    <h1>@pageTitle</h1>
    <div>
        Add/Edit and manage store details.
    </div>
</div>

<div class="GroupBox">
    @Html.PrivateLink("Add New Store", "Edit", "Store")
    @Html.Partial("_ListView", _ListConfig)
</div>